<template>
	<view class="" style="height: 100%;">
		<image src="@/pages6/static/images/insurance.jpg" mode="widthFix" style="width: 100%;"></image>
		<view class="line-style">
			<view class="btn" @tap="goBack">返回</view>
			<view class="btn" @tap="copyUrl2" style="">复制了解</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				imgUrl2: "",
			}
		},

		onLoad: function(option) {
			this.imgUrl2 = option.url
		},
		methods: {
			goBack() {
				uni.navigateBack({
					delta: 1
				});
			},
			
			async copyUrl2() {
				uni.setClipboardData({
					//准备复制的数据
					data: this.imgUrl2,
					success: (res) => {
						this.$api.msg('复制成功！请在微信环境下使用，否则无效')
					}
				})
			},
		}
	}
</script>

<style>
	.line-style {
		position: absolute;
		bottom: 50upx;
		width: 60%;
		margin-left: 20%;
		font-size: 28upx;
		line-height: 60upx;
		padding: 0 20upx;
		display: flex;
		flex-direction:row;
		align-items: center;
		justify-content: space-between;
	}

	.btn {
		padding: 4upx 10upx;
		border-radius: 10upx;
		background-color: #f3431a;
		color: #fff;
	}
</style>
